/**
 * config
 */

var fs = require('fs'),
    path = require('path'),
    url = require('url');

config = exports;

config.site = {};
config.app={};
config.db={};

config.site.upload_dir= 'data';
config.site.session_secret='blog4node';

config.db.url='mongodb://localhost/blog4node';
config.db.options= {auto_reconnect: true};


config.app.domain= 'localhost';
config.app.port= 3000;
config.app.name= 'tide‘s blog';
config.app.description= 'My Node CRM';
config.app.version= '0.0.1';

var urlInfo = url.parse(config.app.domain);
config.app.hostname = urlInfo.hostname || config.app.domain;

// site settings
config.app.post_page_limit = 10;
config.app.author="tide";
config.app.description="Based on The blog4node";
config.app.keywords="潮汐 tide javascript js java oracle nodejs angularjs bootstrap";

config.app.enable_search_preview= false; // 开启google search preview

// 话题列表显示的话题数量
config.app.list_topic_count= 20;